﻿using System.ServiceModel.Dispatcher;

namespace ShopPowerTemplate.Common.Authentication
{
    public class WebServiceAuthenticatedClient : WebAuthServiceReference.WebAuthServiceClient
    {
        public WebServiceAuthenticatedClient()
            : base()
        {
            Endpoint.EndpointBehaviors.Add(new CustomEndpointBehavior());
        }

        public WebServiceAuthenticatedClient(IClientMessageInspector messageInspector)
            : base()
        {
            Endpoint.EndpointBehaviors.Add(new CustomEndpointBehavior(messageInspector));
        }
    }
}
